package com.yunhe.authority.config;

import org.neo4j.ogm.session.SessionFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.neo4j.transaction.Neo4jTransactionManager;

/**
 * @ClassName Neo4jTransactionManagerConfig
 * @Description TODO
 * @Author HeTao
 * @Date 2020/10/13 14:26
 * @Version 1.0
 **/
@Configuration
public class Neo4jTransactionManagerConfig {
    @Bean(name = "transactionManager")
    public Neo4jTransactionManager get(SessionFactory sessionFactory) {
        return new Neo4jTransactionManager(sessionFactory);
    }
}
